package cn.jiyun.dao.domain;

import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;

@Data
@ToString // 重写toString方法
public class Role {

    @Column(name = "id")
    @Id
    private Integer id;

    @Column(name = "role_name")
    private String roleName;

    @Column(name = "menu_ids")
    private String menuIds;

    @Column(name = "operation_ids")
    private String operationIds;

    @Column(name = "role_description")
    private String roleDescription;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;
}
